package main
import (
	"encoding/json"
	"fmt"
)
type DebugInfo struct {
	Level string
	Msg string
	author string
}
func (dbgInfo DebugInfo) toString() string {
	return fmt.Sprintf("{Level: %s, Msg: %s}", dbgInfo.Level, dbgInfo.Msg)
}

func main() {
	data := `[{"Level":"debug","Msg":"Not Found"}, ` + `{"Level":"","Msg":"Logic error"}]`
	var dbgInfos []DebugInfo
	json.Unmarshal([]byte(data), &dbgInfos)
	fmt.Println(dbgInfos)
}